﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DBCDS" targetNamespace="http://tempuri.org/DBCDS.xsd" xmlns:mstns="http://tempuri.org/DBCDS.xsd" xmlns="http://tempuri.org/DBCDS.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="DatabaseClientConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="DatabaseClientConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.DatabaseClientConnectionString.ConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ConnectionTableAdapter" GeneratorDataComponentClassName="ConnectionTableAdapter" Name="Connection" UserDataComponentName="ConnectionTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="DatabaseClientConnectionString (Web.config)" DbObjectName="DatabaseClient.dbo.Connection" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Connection] WHERE (([ConnectionId] = @Original_ConnectionId))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ConnectionId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ConnectionId" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Connection] ([ConnectionName], [ConnectionString], [UserId]) VALUES (@ConnectionName, @ConnectionString, @UserId)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ConnectionName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ConnectionName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ConnectionString" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ConnectionString" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@UserId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserId" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ConnectionId, ConnectionName, ConnectionString, UserId FROM dbo.Connection</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Connection] SET [ConnectionName] = @ConnectionName, [ConnectionString] = @ConnectionString, [UserId] = @UserId WHERE (([ConnectionId] = @Original_ConnectionId))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ConnectionName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ConnectionName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ConnectionString" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ConnectionString" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@UserId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserId" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ConnectionId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ConnectionId" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ConnectionId" DataSetColumn="ConnectionId" />
              <Mapping SourceColumn="ConnectionName" DataSetColumn="ConnectionName" />
              <Mapping SourceColumn="ConnectionString" DataSetColumn="ConnectionString" />
              <Mapping SourceColumn="UserId" DataSetColumn="UserId" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="DatabaseClientConnectionString (Web.config)" DbObjectName="DatabaseClient.dbo.Connection" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillById" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataById" GeneratorSourceName="FillById" GetMethodModifier="Public" GetMethodName="GetDataById" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataById" UserSourceName="FillById">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ConnectionId, ConnectionName, ConnectionString, UserId FROM dbo.Connection
WHERE ConnectionId = @ConnectionId</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ConnectionId" ColumnName="ConnectionId" DataSourceName="DatabaseClient.dbo.Connection" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ConnectionId" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ConnectionId" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ColumnMappingTableAdapter" GeneratorDataComponentClassName="ColumnMappingTableAdapter" Name="ColumnMapping" UserDataComponentName="ColumnMappingTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="DatabaseClientConnectionString (Web.config)" DbObjectName="DatabaseClient.dbo.ColumnMapping" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[ColumnMapping] WHERE (([ColumnMappingId] = @Original_ColumnMappingId))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ColumnMappingId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ColumnMappingId" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[ColumnMapping] ([ConnectionId], [TableName], [TableColumnName], [ReferenceObject], [ReferenceIdColumn], [ReferenceDisplayColumn], [ReferenceOrderByColumn], [ReferenceOrderDirection]) VALUES (@ConnectionId, @TableName, @TableColumnName, @ReferenceObject, @ReferenceIdColumn, @ReferenceDisplayColumn, @ReferenceOrderByColumn, @ReferenceOrderDirection)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ConnectionId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ConnectionId" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TableName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TableName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TableColumnName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TableColumnName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ReferenceObject" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ReferenceObject" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ReferenceIdColumn" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ReferenceIdColumn" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ReferenceDisplayColumn" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ReferenceDisplayColumn" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ReferenceOrderByColumn" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ReferenceOrderByColumn" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ReferenceOrderDirection" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ReferenceOrderDirection" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ColumnMappingId, ConnectionId, TableName, TableColumnName, ReferenceObject, ReferenceIdColumn, ReferenceDisplayColumn, ReferenceOrderByColumn, ReferenceOrderDirection FROM dbo.ColumnMapping</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[ColumnMapping] SET [ConnectionId] = @ConnectionId, [TableName] = @TableName, [TableColumnName] = @TableColumnName, [ReferenceObject] = @ReferenceObject, [ReferenceIdColumn] = @ReferenceIdColumn, [ReferenceDisplayColumn] = @ReferenceDisplayColumn, [ReferenceOrderByColumn] = @ReferenceOrderByColumn, [ReferenceOrderDirection] = @ReferenceOrderDirection WHERE (([ColumnMappingId] = @Original_ColumnMappingId))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ConnectionId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ConnectionId" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TableName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TableName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TableColumnName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TableColumnName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ReferenceObject" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ReferenceObject" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ReferenceIdColumn" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ReferenceIdColumn" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ReferenceDisplayColumn" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ReferenceDisplayColumn" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ReferenceOrderByColumn" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ReferenceOrderByColumn" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ReferenceOrderDirection" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ReferenceOrderDirection" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ColumnMappingId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ColumnMappingId" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ColumnMappingId" DataSetColumn="ColumnMappingId" />
              <Mapping SourceColumn="ConnectionId" DataSetColumn="ConnectionId" />
              <Mapping SourceColumn="TableName" DataSetColumn="TableName" />
              <Mapping SourceColumn="TableColumnName" DataSetColumn="TableColumnName" />
              <Mapping SourceColumn="ReferenceObject" DataSetColumn="ReferenceObject" />
              <Mapping SourceColumn="ReferenceIdColumn" DataSetColumn="ReferenceIdColumn" />
              <Mapping SourceColumn="ReferenceDisplayColumn" DataSetColumn="ReferenceDisplayColumn" />
              <Mapping SourceColumn="ReferenceOrderByColumn" DataSetColumn="ReferenceOrderByColumn" />
              <Mapping SourceColumn="ReferenceOrderDirection" DataSetColumn="ReferenceOrderDirection" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="DatabaseClientConnectionString (Web.config)" DbObjectName="DatabaseClient.dbo.ColumnMapping" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillById" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataById" GeneratorSourceName="FillById" GetMethodModifier="Public" GetMethodName="GetDataById" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataById" UserSourceName="FillById">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ColumnMappingId, ConnectionId, TableName, TableColumnName, ReferenceObject, ReferenceIdColumn, ReferenceDisplayColumn, ReferenceOrderByColumn, ReferenceOrderDirection FROM dbo.ColumnMapping
WHERE ColumnMappingId = @ColumnMappingId</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ColumnMappingId" ColumnName="ColumnMappingId" DataSourceName="DatabaseClient.dbo.ColumnMapping" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ColumnMappingId" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ColumnMappingId" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="QueryTableAdapter" GeneratorDataComponentClassName="QueryTableAdapter" Name="Query" UserDataComponentName="QueryTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="DatabaseClientConnectionString (Web.config)" DbObjectName="DatabaseClient.dbo.Query" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Query] WHERE (([QueryId] = @Original_QueryId))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_QueryId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QueryId" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Query] ([QueryName], [ConnectionId], [Query], [SelectTable], [SelectColumnId]) VALUES (@QueryName, @ConnectionId, @Query, @SelectTable, @SelectColumnId)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@QueryName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="QueryName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ConnectionId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ConnectionId" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Query" Precision="0" ProviderType="NText" Scale="0" Size="0" SourceColumn="Query" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@SelectTable" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SelectTable" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@SelectColumnId" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SelectColumnId" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT QueryId, QueryName, ConnectionId, Query, SelectTable, SelectColumnId FROM dbo.Query</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Query] SET [QueryName] = @QueryName, [ConnectionId] = @ConnectionId, [Query] = @Query, [SelectTable] = @SelectTable, [SelectColumnId] = @SelectColumnId WHERE (([QueryId] = @Original_QueryId))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@QueryName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="QueryName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ConnectionId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ConnectionId" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Query" Precision="0" ProviderType="NText" Scale="0" Size="0" SourceColumn="Query" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@SelectTable" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SelectTable" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@SelectColumnId" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SelectColumnId" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_QueryId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QueryId" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="QueryId" DataSetColumn="QueryId" />
              <Mapping SourceColumn="QueryName" DataSetColumn="QueryName" />
              <Mapping SourceColumn="ConnectionId" DataSetColumn="ConnectionId" />
              <Mapping SourceColumn="Query" DataSetColumn="Query" />
              <Mapping SourceColumn="SelectTable" DataSetColumn="SelectTable" />
              <Mapping SourceColumn="SelectColumnId" DataSetColumn="SelectColumnId" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="DatabaseClientConnectionString (Web.config)" DbObjectName="DatabaseClient.dbo.Query" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillById" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataById" GeneratorSourceName="FillById" GetMethodModifier="Public" GetMethodName="GetDataById" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataById" UserSourceName="FillById">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT QueryId, QueryName, ConnectionId, Query, SelectTable, SelectColumnId FROM dbo.Query
WHERE QueryId = @QueryId</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="QueryId" ColumnName="QueryId" DataSourceName="DatabaseClient.dbo.Query" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@QueryId" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="QueryId" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="DBCDS" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_DataSetName="DBCDS" msprop:Generator_UserDSName="DBCDS">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Connection" msprop:Generator_TableClassName="ConnectionDataTable" msprop:Generator_TableVarName="tableConnection" msprop:Generator_TablePropName="Connection" msprop:Generator_RowDeletingName="ConnectionRowDeleting" msprop:Generator_UserTableName="Connection" msprop:Generator_RowChangingName="ConnectionRowChanging" msprop:Generator_RowEvHandlerName="ConnectionRowChangeEventHandler" msprop:Generator_RowDeletedName="ConnectionRowDeleted" msprop:Generator_RowEvArgName="ConnectionRowChangeEvent" msprop:Generator_RowChangedName="ConnectionRowChanged" msprop:Generator_RowClassName="ConnectionRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ConnectionId" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnConnectionId" msprop:Generator_ColumnPropNameInRow="ConnectionId" msprop:Generator_ColumnPropNameInTable="ConnectionIdColumn" msprop:Generator_UserColumnName="ConnectionId" type="xs:int" />
              <xs:element name="ConnectionName" msprop:Generator_ColumnVarNameInTable="columnConnectionName" msprop:Generator_ColumnPropNameInRow="ConnectionName" msprop:Generator_ColumnPropNameInTable="ConnectionNameColumn" msprop:Generator_UserColumnName="ConnectionName">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ConnectionString" msprop:Generator_ColumnVarNameInTable="columnConnectionString" msprop:Generator_ColumnPropNameInRow="ConnectionString" msprop:Generator_ColumnPropNameInTable="ConnectionStringColumn" msprop:Generator_UserColumnName="ConnectionString">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="500" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="UserId" msprop:Generator_ColumnVarNameInTable="columnUserId" msprop:Generator_ColumnPropNameInRow="UserId" msprop:Generator_ColumnPropNameInTable="UserIdColumn" msprop:Generator_UserColumnName="UserId" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="ColumnMapping" msprop:Generator_TableClassName="ColumnMappingDataTable" msprop:Generator_TableVarName="tableColumnMapping" msprop:Generator_TablePropName="ColumnMapping" msprop:Generator_RowDeletingName="ColumnMappingRowDeleting" msprop:Generator_UserTableName="ColumnMapping" msprop:Generator_RowChangingName="ColumnMappingRowChanging" msprop:Generator_RowEvHandlerName="ColumnMappingRowChangeEventHandler" msprop:Generator_RowDeletedName="ColumnMappingRowDeleted" msprop:Generator_RowEvArgName="ColumnMappingRowChangeEvent" msprop:Generator_RowChangedName="ColumnMappingRowChanged" msprop:Generator_RowClassName="ColumnMappingRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ColumnMappingId" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnColumnMappingId" msprop:Generator_ColumnPropNameInRow="ColumnMappingId" msprop:Generator_ColumnPropNameInTable="ColumnMappingIdColumn" msprop:Generator_UserColumnName="ColumnMappingId" type="xs:int" />
              <xs:element name="ConnectionId" msprop:Generator_ColumnVarNameInTable="columnConnectionId" msprop:Generator_ColumnPropNameInRow="ConnectionId" msprop:Generator_ColumnPropNameInTable="ConnectionIdColumn" msprop:Generator_UserColumnName="ConnectionId" type="xs:int" />
              <xs:element name="TableName" msprop:Generator_ColumnVarNameInTable="columnTableName" msprop:Generator_ColumnPropNameInRow="TableName" msprop:Generator_ColumnPropNameInTable="TableNameColumn" msprop:Generator_UserColumnName="TableName">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TableColumnName" msprop:Generator_ColumnVarNameInTable="columnTableColumnName" msprop:Generator_ColumnPropNameInRow="TableColumnName" msprop:Generator_ColumnPropNameInTable="TableColumnNameColumn" msprop:Generator_UserColumnName="TableColumnName">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ReferenceObject" msprop:Generator_ColumnVarNameInTable="columnReferenceObject" msprop:Generator_ColumnPropNameInRow="ReferenceObject" msprop:Generator_ColumnPropNameInTable="ReferenceObjectColumn" msprop:Generator_UserColumnName="ReferenceObject">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ReferenceIdColumn" msprop:Generator_ColumnVarNameInTable="columnReferenceIdColumn" msprop:Generator_ColumnPropNameInRow="ReferenceIdColumn" msprop:Generator_ColumnPropNameInTable="ReferenceIdColumnColumn" msprop:Generator_UserColumnName="ReferenceIdColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ReferenceDisplayColumn" msprop:Generator_ColumnVarNameInTable="columnReferenceDisplayColumn" msprop:Generator_ColumnPropNameInRow="ReferenceDisplayColumn" msprop:Generator_ColumnPropNameInTable="ReferenceDisplayColumnColumn" msprop:Generator_UserColumnName="ReferenceDisplayColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ReferenceOrderByColumn" msprop:Generator_ColumnVarNameInTable="columnReferenceOrderByColumn" msprop:Generator_ColumnPropNameInRow="ReferenceOrderByColumn" msprop:Generator_ColumnPropNameInTable="ReferenceOrderByColumnColumn" msprop:Generator_UserColumnName="ReferenceOrderByColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ReferenceOrderDirection" msprop:Generator_ColumnVarNameInTable="columnReferenceOrderDirection" msprop:Generator_ColumnPropNameInRow="ReferenceOrderDirection" msprop:Generator_ColumnPropNameInTable="ReferenceOrderDirectionColumn" msprop:Generator_UserColumnName="ReferenceOrderDirection" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="4" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Query" msprop:Generator_TableClassName="QueryDataTable" msprop:Generator_TableVarName="tableQuery" msprop:Generator_TablePropName="Query" msprop:Generator_RowDeletingName="QueryRowDeleting" msprop:Generator_UserTableName="Query" msprop:Generator_RowChangingName="QueryRowChanging" msprop:Generator_RowEvHandlerName="QueryRowChangeEventHandler" msprop:Generator_RowDeletedName="QueryRowDeleted" msprop:Generator_RowEvArgName="QueryRowChangeEvent" msprop:Generator_RowChangedName="QueryRowChanged" msprop:Generator_RowClassName="QueryRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="QueryId" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnQueryId" msprop:Generator_ColumnPropNameInRow="QueryId" msprop:Generator_ColumnPropNameInTable="QueryIdColumn" msprop:Generator_UserColumnName="QueryId" type="xs:int" />
              <xs:element name="QueryName" msprop:Generator_ColumnVarNameInTable="columnQueryName" msprop:Generator_ColumnPropNameInRow="QueryName" msprop:Generator_ColumnPropNameInTable="QueryNameColumn" msprop:Generator_UserColumnName="QueryName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ConnectionId" msprop:Generator_ColumnVarNameInTable="columnConnectionId" msprop:Generator_ColumnPropNameInRow="ConnectionId" msprop:Generator_ColumnPropNameInTable="ConnectionIdColumn" msprop:Generator_UserColumnName="ConnectionId" type="xs:int" />
              <xs:element name="Query" msprop:Generator_ColumnVarNameInTable="columnQuery" msprop:Generator_ColumnPropNameInRow="Query" msprop:Generator_ColumnPropNameInTable="QueryColumn" msprop:Generator_UserColumnName="Query">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1073741823" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="SelectTable" msprop:Generator_ColumnVarNameInTable="columnSelectTable" msprop:Generator_ColumnPropNameInRow="SelectTable" msprop:Generator_ColumnPropNameInTable="SelectTableColumn" msprop:Generator_UserColumnName="SelectTable" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="SelectColumnId" msprop:Generator_ColumnVarNameInTable="columnSelectColumnId" msprop:Generator_ColumnPropNameInRow="SelectColumnId" msprop:Generator_ColumnPropNameInTable="SelectColumnIdColumn" msprop:Generator_UserColumnName="SelectColumnId" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Connection" />
      <xs:field xpath="mstns:ConnectionId" />
    </xs:unique>
    <xs:unique name="ColumnMapping_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:ColumnMapping" />
      <xs:field xpath="mstns:ColumnMappingId" />
    </xs:unique>
    <xs:unique name="Query_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Query" />
      <xs:field xpath="mstns:QueryId" />
    </xs:unique>
  </xs:element>
  <xs:annotation>
    <xs:appinfo>
      <msdata:Relationship name="FK_ColumnMapping_Connection" msdata:parent="Connection" msdata:child="ColumnMapping" msdata:parentkey="ConnectionId" msdata:childkey="ConnectionId" msprop:Generator_UserChildTable="ColumnMapping" msprop:Generator_ChildPropName="GetColumnMappingRows" msprop:Generator_ParentPropName="ConnectionRow" msprop:Generator_UserRelationName="FK_ColumnMapping_Connection" msprop:Generator_RelationVarName="relationFK_ColumnMapping_Connection" msprop:Generator_UserParentTable="Connection" />
    </xs:appinfo>
  </xs:annotation>
</xs:schema>